<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      font-size: 12px;
    }
    .banner {
      position:relative;
      width: 100vw;
      height: auto;
      margin: 0 auto;
    }
    .cover {
      position:absolute;
      top:0;
      left:0;
      right: 0;
      bottom: 0;
      box-shadow: 0 0 150px #16161a inset,
      0 0 100px rgb(41, 40, 40) inset,
      0 0 50px #000 inset;
      z-index: 1;
    }
    .bgImg {
      position:relative;
      display: block;
      width: 100%;
    }
    .menu {
      position: absolute;
      right: 10%;
      top: 50%;
      transform: translateY(-50%);
      width: 200px;
      padding: 20px 0;
      box-sizing: border-box;
      /* background: rgba(36,165,255,.30196078431372547); */
      background-image: linear-gradient(
180deg
,rgba(22,22,26,0),rgba(22,22,26,.5) 15%,rgba(22,22,26,.8) 35%,rgba(22,22,26,.8) 65%,rgba(22,22,26,.5) 85%,rgba(22,22,26,0));
      z-index: 2;
    }
    .list {
      list-style: none;
      cursor: pointer;
      width: 100%;
    }
    .listItem {
      display: flex;
      flex-direction: column;
      width: 100%;
      line-height: 24px;
      padding: 0 20px;
      box-sizing: border-box;
      margin-bottom: 10px;
    }
    .listItem:hover {
      background: rgba(36,165,255,.30196078431372547);
      margin-bottom: 0;
    }
    .listItem:hover h4 {
      color: #fff;
      font-size: 14px;
      line-height: 20px;
      font-weight: 700;
    }
    .listItem:hover span{
      color: #fff;
      display: block;
      opacity: 1;
      line-height: 20px;
    }
    .listItem h4{
      color: hsla(0,0%,100%,.8);
      margin: 6px 0;
      font-weight: 400;
    }
    .listItem span {
      display: none;
      opacity: 0;
      width: 100%;
      white-space: nowrap;
      text-overflow: ellipsis;
      overflow: hidden;
    }
    .listItem h4, .listItem span {
      transition: font-size .4s;
    }

    .Icon {
      position:absolute;
      bottom: 10%;
      right: 30%;
      display: block;
      z-index: 10;
    }
    .Icon img {
      display: block;
      width: 90px;
      height: 90px;
    }
    .sign {
      position: absolute;
      left: 20px;
      bottom: 20px;
      color:#fff;
      z-index: 999;
    }
  </style>
</head>
<body>
  <div class="banner">
    <div class="cover"></div>
    <img class="bgImg" src="image/1.jpg" alt="展示图片">
    <div class="menu">
      <ul class="list">
        <li class="listItem">
          <h4>极限挑战第七季</h4>
          <span>极限男团火场救援又燃又飒</span>
        </li>
        <li class="listItem">
          <h4>德云社封箱</h4>
          <span>杨九郎出逃主持团搭档三哥！</span>
        </li>
        <li class="listItem">
          <h4>亲爱的柠檬精先生</h4>
          <span>娇妻变绝美御姐归来复仇</span>
        </li>
        <li class="listItem">
          <h4>刺杀小说家</h4>
          <span>雷佳音杨幂异世界血战赤发鬼！</span>
        </li>
        <li class="listItem">
          <h4>十二谭</h4>
          <span>男子一见钟情爱上狂野女郎</span>
        </li>
        <li class="listItem">
          <h4>大宋宫词</h4>
          <span>刘涛周渝民旷世奇恋</span>
        </li>
        <li class="listItem">
          <h4>老郭有新番</h4>
          <span>老郭笑侃郭麒麟王九龙“九漏鱼”</span>
        </li>
        <li class="listItem">
          <h4>王牌对王牌 第六季</h4>
          <span>烫嘴！倪萍沈腾pk绕口令新闻</span>
        </li>
      </ul>
    </div>
    <a class="Icon" target="_black" href="http://www.youku.com">
      <img class="logoIcon" src="image/icon/1.png" alt="">
    </a>
    <span class="sign">==日常练习==</span>
  </div>
</body>
<script>
  let img1 = document.querySelector('.bgImg')
  let img2 = document.querySelector('.logoIcon')
  let lis = document.querySelectorAll('.listItem')


  for(let i = 0; i < lis.length; i++) {
    lis[i].addEventListener('mouseover',function(){
      index = i+1
      img1.src = 'image/'+ index +'.jpg'
      img2.src = 'image/icon/'+ index +'.png'
    })
  }
</script>
</html>